﻿using System;
using System.Web;
using System.Web.Optimization;

namespace WebApplicationBase.App_Start
{
    public class BundleConfig
    {
        public static void RegisterBundles(BundleCollection bundles)
        {
            //该值为true，在任何模式下都使用捆绑和压缩。
            //BundleTable.EnableOptimizations = true;

            // 公共库JS   
            bundles.Add(new ScriptBundle("~/Scripts/Utils").Include("~/Scripts/jquery-3.6.0.js", "~/Scripts/vue-global-prod-3.2.33.js", "~/Scripts/element-plus.js", "~/Scripts/utils.js"));
            // 主页Js
            bundles.Add(new ScriptBundle("~/Scripts/Index").Include("~/Scripts/index.js"));
            // 登录Js
            bundles.Add(new ScriptBundle("~/Scripts/Login").Include("~/Scripts/login.js"));
            // 找回密码JS
            bundles.Add(new ScriptBundle("~/Scripts/Identify").Include("~/Scripts/identify.js"));
            // 注册Js
            bundles.Add(new ScriptBundle("~/Scripts/Register").Include("~/Scripts/register.js"));
            // 公共头部Js
            bundles.Add(new ScriptBundle("~/Scripts/HeaderBar").Include("~/Scripts/header-bar.js"));
            // 工作面板侧边栏
            bundles.Add(new ScriptBundle("~/Scripts/Dashboard/SideBar").Include("~/Areas/Dashboard/Scripts/dashboard-sidebar.js"));

            // 工作面板
            bundles.Add(new StyleBundle("~/Content/Msh/Css").Include("~/Content/Css/Mhs.css", "~/Content/Css/Mhs2.css"));
            // 主页样式
            bundles.Add(new StyleBundle("~/Content/Index/Css").Include("~/Content/Css/Home.css"));
            // 登录、注册、找回密码样式
            bundles.Add(new StyleBundle("~/Content/Login/Css").Include("~/Content/Css/Login.css"));
            // 工作面板
            bundles.Add(new StyleBundle("~/Content/Dashboard/Css").Include("~/Content/Css/Dashboard.css"));
            // 饿了么组件
            bundles.Add(new StyleBundle("~/Content/Index/Element").Include("~/Content/Css/ElementUiPlusIndex.css"));
        }
    }
}
